import request from "@/utils/request";

// 查询列表
export function getList(data) {
  return request({
    url: "/base/msg/page",
    method: "post",
    params: data,
  });
}
// 全部已读
export function setReadAll(data) {
  return request({
    url: "/base/msg/readAll",
    method: "post",
    params: data,
  });
}

// 流程 实例 同意审批
export function approve(data) {
  return request({
    url: "/base/flow/task/approve",
    method: "post",
    params: data,
  });
}
// 流程 实例 拒绝审批
export function rejected(data) {
  return request({
    url: "/base/flow/task/rejected",
    method: "post",
    params: data,
  });
}
//
export function getRead(data) {
  return request({
    url: "base/msg/read?ids="+data,
    method: "post",
  });
}
